<?php
namespace app\zhengmaotong\validate;


use think\Validate;

class GoodsValidate extends Validate
{
    protected $rule = [
        'images' => 'require',
        'name' => 'require',
        'status' => 'require',
    ];
    protected $message = [
        'images.require' => '商品图片不能为空',
        'name.require' => '商品名称不能为空',

        'status.require' => '商品类型不能为空',
    ];
    protected $scene = [
        'add' => ['images','name','status'],
        'edit' => ['images','name','status']
    ];

}